<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// 从本地存储中获取用户信息
			const userInfo = uni.getStorageSync('userInfo');
			if (!userInfo) {
				// 如果用户信息不存在，跳转到登录页面
				uni.redirectTo({
					url: '/pages/login/login',
				});
			}
		},
		onShow: function() {
			console.log('App Show')
			
		},
		onHide: function() {
			console.log('App Hide')
		},
		
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/static/iconfont/iconfont.css';
	@import "uview-pro/index.scss";
</style>
